﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020014E1 RID: 5345
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class UseItemCsReq : IMessage<UseItemCsReq>, IMessage, IEquatable<UseItemCsReq>, IDeepCloneable<UseItemCsReq>, IBufferMessage
	{
		// Token: 0x17004349 RID: 17225
		// (get) Token: 0x0600EF10 RID: 61200 RVA: 0x0027E64F File Offset: 0x0027C84F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<UseItemCsReq> Parser
		{
			get
			{
				return UseItemCsReq._parser;
			}
		}

		// Token: 0x1700434A RID: 17226
		// (get) Token: 0x0600EF11 RID: 61201 RVA: 0x0027E656 File Offset: 0x0027C856
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return UseItemCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700434B RID: 17227
		// (get) Token: 0x0600EF12 RID: 61202 RVA: 0x0027E668 File Offset: 0x0027C868
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return UseItemCsReq.Descriptor;
			}
		}

		// Token: 0x0600EF13 RID: 61203 RVA: 0x0027E66F File Offset: 0x0027C86F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UseItemCsReq()
		{
		}

		// Token: 0x0600EF14 RID: 61204 RVA: 0x0027E678 File Offset: 0x0027C878
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UseItemCsReq(UseItemCsReq other) : this()
		{
			this.baseAvatarId_ = other.baseAvatarId_;
			this.useItemCount_ = other.useItemCount_;
			this.useItemId_ = other.useItemId_;
			this.mLHBIFIFHHK_ = other.mLHBIFIFHHK_;
			this.optionalRewardId_ = other.optionalRewardId_;
			this.useAvatarType_ = other.useAvatarType_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EF15 RID: 61205 RVA: 0x0027E6E4 File Offset: 0x0027C8E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UseItemCsReq Clone()
		{
			return new UseItemCsReq(this);
		}

		// Token: 0x1700434C RID: 17228
		// (get) Token: 0x0600EF16 RID: 61206 RVA: 0x0027E6EC File Offset: 0x0027C8EC
		// (set) Token: 0x0600EF17 RID: 61207 RVA: 0x0027E6F4 File Offset: 0x0027C8F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BaseAvatarId
		{
			get
			{
				return this.baseAvatarId_;
			}
			set
			{
				this.baseAvatarId_ = value;
			}
		}

		// Token: 0x1700434D RID: 17229
		// (get) Token: 0x0600EF18 RID: 61208 RVA: 0x0027E6FD File Offset: 0x0027C8FD
		// (set) Token: 0x0600EF19 RID: 61209 RVA: 0x0027E705 File Offset: 0x0027C905
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint UseItemCount
		{
			get
			{
				return this.useItemCount_;
			}
			set
			{
				this.useItemCount_ = value;
			}
		}

		// Token: 0x1700434E RID: 17230
		// (get) Token: 0x0600EF1A RID: 61210 RVA: 0x0027E70E File Offset: 0x0027C90E
		// (set) Token: 0x0600EF1B RID: 61211 RVA: 0x0027E716 File Offset: 0x0027C916
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint UseItemId
		{
			get
			{
				return this.useItemId_;
			}
			set
			{
				this.useItemId_ = value;
			}
		}

		// Token: 0x1700434F RID: 17231
		// (get) Token: 0x0600EF1C RID: 61212 RVA: 0x0027E71F File Offset: 0x0027C91F
		// (set) Token: 0x0600EF1D RID: 61213 RVA: 0x0027E727 File Offset: 0x0027C927
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool MLHBIFIFHHK
		{
			get
			{
				return this.mLHBIFIFHHK_;
			}
			set
			{
				this.mLHBIFIFHHK_ = value;
			}
		}

		// Token: 0x17004350 RID: 17232
		// (get) Token: 0x0600EF1E RID: 61214 RVA: 0x0027E730 File Offset: 0x0027C930
		// (set) Token: 0x0600EF1F RID: 61215 RVA: 0x0027E738 File Offset: 0x0027C938
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint OptionalRewardId
		{
			get
			{
				return this.optionalRewardId_;
			}
			set
			{
				this.optionalRewardId_ = value;
			}
		}

		// Token: 0x17004351 RID: 17233
		// (get) Token: 0x0600EF20 RID: 61216 RVA: 0x0027E741 File Offset: 0x0027C941
		// (set) Token: 0x0600EF21 RID: 61217 RVA: 0x0027E749 File Offset: 0x0027C949
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarType UseAvatarType
		{
			get
			{
				return this.useAvatarType_;
			}
			set
			{
				this.useAvatarType_ = value;
			}
		}

		// Token: 0x0600EF22 RID: 61218 RVA: 0x0027E752 File Offset: 0x0027C952
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as UseItemCsReq);
		}

		// Token: 0x0600EF23 RID: 61219 RVA: 0x0027E760 File Offset: 0x0027C960
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(UseItemCsReq other)
		{
			return other != null && (other == this || (this.BaseAvatarId == other.BaseAvatarId && this.UseItemCount == other.UseItemCount && this.UseItemId == other.UseItemId && this.MLHBIFIFHHK == other.MLHBIFIFHHK && this.OptionalRewardId == other.OptionalRewardId && this.UseAvatarType == other.UseAvatarType && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EF24 RID: 61220 RVA: 0x0027E7EC File Offset: 0x0027C9EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BaseAvatarId != 0U)
			{
				num ^= this.BaseAvatarId.GetHashCode();
			}
			if (this.UseItemCount != 0U)
			{
				num ^= this.UseItemCount.GetHashCode();
			}
			if (this.UseItemId != 0U)
			{
				num ^= this.UseItemId.GetHashCode();
			}
			if (this.MLHBIFIFHHK)
			{
				num ^= this.MLHBIFIFHHK.GetHashCode();
			}
			if (this.OptionalRewardId != 0U)
			{
				num ^= this.OptionalRewardId.GetHashCode();
			}
			if (this.UseAvatarType != AvatarType.None)
			{
				num ^= this.UseAvatarType.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EF25 RID: 61221 RVA: 0x0027E8AE File Offset: 0x0027CAAE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EF26 RID: 61222 RVA: 0x0027E8B6 File Offset: 0x0027CAB6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EF27 RID: 61223 RVA: 0x0027E8C0 File Offset: 0x0027CAC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.UseItemId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.UseItemId);
			}
			if (this.OptionalRewardId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.OptionalRewardId);
			}
			if (this.BaseAvatarId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.BaseAvatarId);
			}
			if (this.MLHBIFIFHHK)
			{
				output.WriteRawTag(80);
				output.WriteBool(this.MLHBIFIFHHK);
			}
			if (this.UseAvatarType != AvatarType.None)
			{
				output.WriteRawTag(104);
				output.WriteEnum((int)this.UseAvatarType);
			}
			if (this.UseItemCount != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.UseItemCount);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600EF28 RID: 61224 RVA: 0x0027E98C File Offset: 0x0027CB8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BaseAvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BaseAvatarId);
			}
			if (this.UseItemCount != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.UseItemCount);
			}
			if (this.UseItemId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.UseItemId);
			}
			if (this.MLHBIFIFHHK)
			{
				num += 2;
			}
			if (this.OptionalRewardId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.OptionalRewardId);
			}
			if (this.UseAvatarType != AvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.UseAvatarType);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600EF29 RID: 61225 RVA: 0x0027EA38 File Offset: 0x0027CC38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(UseItemCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BaseAvatarId != 0U)
			{
				this.BaseAvatarId = other.BaseAvatarId;
			}
			if (other.UseItemCount != 0U)
			{
				this.UseItemCount = other.UseItemCount;
			}
			if (other.UseItemId != 0U)
			{
				this.UseItemId = other.UseItemId;
			}
			if (other.MLHBIFIFHHK)
			{
				this.MLHBIFIFHHK = other.MLHBIFIFHHK;
			}
			if (other.OptionalRewardId != 0U)
			{
				this.OptionalRewardId = other.OptionalRewardId;
			}
			if (other.UseAvatarType != AvatarType.None)
			{
				this.UseAvatarType = other.UseAvatarType;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600EF2A RID: 61226 RVA: 0x0027EAD8 File Offset: 0x0027CCD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600EF2B RID: 61227 RVA: 0x0027EAE4 File Offset: 0x0027CCE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 64U)
				{
					if (num == 32U)
					{
						this.UseItemId = input.ReadUInt32();
						continue;
					}
					if (num == 48U)
					{
						this.OptionalRewardId = input.ReadUInt32();
						continue;
					}
					if (num == 64U)
					{
						this.BaseAvatarId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 80U)
					{
						this.MLHBIFIFHHK = input.ReadBool();
						continue;
					}
					if (num == 104U)
					{
						this.UseAvatarType = (AvatarType)input.ReadEnum();
						continue;
					}
					if (num == 112U)
					{
						this.UseItemCount = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005E74 RID: 24180
		private static readonly MessageParser<UseItemCsReq> _parser = new MessageParser<UseItemCsReq>(() => new UseItemCsReq());

		// Token: 0x04005E75 RID: 24181
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005E76 RID: 24182
		public const int BaseAvatarIdFieldNumber = 8;

		// Token: 0x04005E77 RID: 24183
		private uint baseAvatarId_;

		// Token: 0x04005E78 RID: 24184
		public const int UseItemCountFieldNumber = 14;

		// Token: 0x04005E79 RID: 24185
		private uint useItemCount_;

		// Token: 0x04005E7A RID: 24186
		public const int UseItemIdFieldNumber = 4;

		// Token: 0x04005E7B RID: 24187
		private uint useItemId_;

		// Token: 0x04005E7C RID: 24188
		public const int MLHBIFIFHHKFieldNumber = 10;

		// Token: 0x04005E7D RID: 24189
		private bool mLHBIFIFHHK_;

		// Token: 0x04005E7E RID: 24190
		public const int OptionalRewardIdFieldNumber = 6;

		// Token: 0x04005E7F RID: 24191
		private uint optionalRewardId_;

		// Token: 0x04005E80 RID: 24192
		public const int UseAvatarTypeFieldNumber = 13;

		// Token: 0x04005E81 RID: 24193
		private AvatarType useAvatarType_;
	}
}
